---
title: Separate Away
date: 2024-05-22
description: Vertical separation of words
author: nyxb
published: true
---

<ComponentPreview name="separate-away-demo" />


### Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">

```bash
npx nyxb@latest add separate-away
```

</TabsContent>

<TabsContent value="manual">

<Steps>

Copy and paste the following code into your project.

```text
components/ui/separate-away.tsx
```

<ComponentSource name="separate-away" />

</Steps>

</TabsContent>

</Tabs>

## Props

| Prop           | Type   | Description                                   | Default |
| -------------- | ------ | --------------------------------------------- | ------- |
| className      | string | The class name to be applied to the component |         |
| upperText      | string | The words to be separated upwards             | "       |
| lowerText      | string | The words to be separated downwards           | "       |
| duration       | number | Duration of the separation animation          | 1.5     |
| hiddenOpacity  | number | Opacity of the text when it's hidden          | 0       |
| visibleOpacity | number | Opacity of the text when it's visible         | 1       |
